<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ""
			};
		},
		onLoad(option) {
			let num = option.src.indexOf("?")
			if (num == -1) {
				this.src = option.src
				return
			}
			let optionArr = option.src.substring(num + 1).split("=")
			optionArr[1] = encodeURIComponent(optionArr[1])
			this.src = option.src.substring(0, num) + '?' + optionArr.join("=")
		},
		methods: {

		}
	}
</script>

<style lang="scss">

</style>